implement in order traversal of tree