Commiting intermediate step in writing GPU watershed algorithm. Will be replaced shortly.