A Bi-metric Framework for Fast Similarity Search