added new solutions for inorder traversal