add preorder, inorder and postorder