Watershed algorithm source code and its analysis and annotation