Optimisation of loops in merge scanner next and benchmark 2B update