added a nearest neighbor solution that doesn't utilize trees.