code to find unique sets of zeroes in 2d array