Merge looping implementation [needs benchmarks]