A custom patch of Mount and Arya's libANN, approximate nearest neighbors