functions for inorder and postorder traversal added