clean version of  fast GrowCut module