this is the sorting algorithms task