Make the Region Grow algorithm a class