Wrote the spec and implementation for the mergeSorted() method in the singly linked list