add makefile and fix some type bug in utilities.cpp
simple working 1NN added
simple working kNN added