tested new mergesort code