Implemented a O(n^2) time and constant space way to solve the 'surrounded regions' problem. however, it turns out this method still requires deep recursion and caused stack overflow in large data set given.