new function defined: closest neighbours"