moved NearestSearch to search package
added appropriate hash function for nearest search variant
some code cleanup