close the intervals for queries so that points are found in point queries
make read_binary and read_txt work when trees just contain indexes