Implemeted preorder display function, and function to determine if tree is balanced