added 3 implementations of nearest neighbor and some pointer examples