First step towards fast creation of BTreeMap from unsorted data.