TreeMap for merge scanner to speed up after mem-optimisations