Program to construct BST and implement tree traversal