added solutions for preorder, inorder and postorder, still need levelorder