I have encountered this problem and i couldn\'t find the solution. There is a 2D array with only zeros and ones in it (the size of the array doesnt really matter, i worked with