added nearest neighbor search algorithm
made nearest neighbor more efficient, fixed indentation
fixed nearest neighbor search w/ set iterator
Merge pull request #1 from amohan95/master

added nearest neighbor search algorithm