add to mergesort and fixed some insertion sort