Set all elements of row and col in a  matrix to 1 where element in 1
Rotate array