Overloaded ostream and outputs inorder