Fixed the subdivide edges algorithm

it was not taking int account adjacency book-keeping before
Wrote the subdivide obtuse edges algorithm

this algorithm and the actual edge subdivision algorithm have yet to be tested, but now that it's all written up like this it will be easy to get on that