Range based queries for BST.