knearneigh function

K nearest neighbours for spatial weights