save and read the binary search tree