Fixing typing error
Adding equal method to TreeNode and tests
Adding hashCode method and tests
Adding tree behaviour in TreeGenerator, DataConstructor and SortNesting