Not belonging regions are also being taken care of. Order of
detection of belonging Regions influences algorithm. TODO: Change that.