July 4th hacking.
Merge pull request #1 from jnh5y/wip_knn_search

July 4th hacking.