use a queue to store O which is waiting to be processed to get Surrounded Regions