Implement selection sort, insertion sort, and shell sort