kNearestNeighbors function

Build Spatial Weight Matrix from k Nearest Neighbors