neighbour matrix is faster