fixes #16 - refactor merge sort so swaps are updated on screen