Added merge sort algorithm