Implements first version of mergesort
Slight refactor