created initial tree construction functions
implemented TreeToLinkedList and BalanceCheck