Merge sort on linked list implementation