add a method for in-order traversal of bintrees