Made mergesort more pythonic