FIXED: Removing pairs of keys assumes the keys are sorted.