implemented mean color based merge segmentor