Initial region growing implementation.