Lots of improvements for the mergesort demo