Sorting algorithms for CSCI 345