Added a simple tree compare which works with more than just two children per node.