added mergesort and working tests