BTreeIndex: locate function and test case implemented.