Extended the B-tree API with a get all keys function.