Changed week 11 mergeSorted method to meet with the requirements specified in the assignment.