sorting algorithms updates