spiral matrix and surrounded region