Region-growing: cleanup hierarchy and write javadocs

Signed-off-by: Jean-Yves Tinevez <jeanyves.tinevez@gmail.com>