classic merge sort algorithm with swap method over against first method that do not uses swap function