Spatial selection of sparse pivots for similarity search in metric spaces