Binary tree code with in order traversal