refactored inOrder behaviour of Binary Tree