Use vec of vecs instead of sorted map