[WIP] Locality Sensitive Hashing for approximate nearest neighbor search(GSoC)

I would inline this methods. It's only used once.