Issue #1: Region growing algorithm implemented