Initial commit. 1NN implementation.