draft of nearest-neighbors versions of everything
bug fixes to NN methods