cleaning up the order graph to be able to handle re inserts and removes when processing parent namespaces already present.  all test cases are passing now, need to add a a few more to be absolutely certain.  edited some test case inputs that were not correct