Fetch two 2-D indices and return a binary 2-D matrix where a True value links two cells where all cells are the same
ndarray