Added merge sort algorithm.