added toString method in SortingList class, modified mergesort and bubblesort accordingly