finished a dubious union-find labeling algo, started on binary morphology