use slices in adaptive sort 2