First pass at implementing 2D version of watershed kernel. Now debugging starts.