First version of mergesort
Solved first assignment