Work copied from PC and some Debugging
In selectComponents bug fixed

and some debugging
Union with q working well
watershed is working, but border doesn't add to C correctly
Basic example is working
Almost working