Added mergeSort() implementation