Adding k nearest neghbour