Inital nearest neighbour search implementation

Signed-off-by: xSilencer08 <fwehlus@gmail.com>