Rewrite the algorithm that closes loops in order. We now tolerate the case when more than two facets share a common edge
Remove useless algorithm in loop merging code