Lab 9 updates

Finished sorting algorithm and tested.