sort2 added, merge sorting algorithm applied