selection sort, quick sort, repeated implementtions