Rewritten half-edge traversal in a more robust way. Includes first medial axis unit test