Made the main function of the sorting algorithms general. Added merge_sort algorithm