Finding closest neigh method