Implements mergesort in sorting/merge.py