rectangle in 2D array