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

More unprotected calls to random.