should work on spectral hashing for Euclidean space