working on clustering. not sure if lsh version is correct yet