[Olena-patches] r3503: Implement 3D watershed and various tools