Add a 2-dimensional array problem: surrounded region flipping