Modified tree utility class to include in-order traversal function.