add a range query method to the binary search tree implementation