Added region growing algorithm