added iterative preorder, postorder and inorder traversal