static class for quicksort, shellsort and mergesort