create the binary tree and traversing the tree in three different ways