Lab 9 Autosort

Implemented an autosort at certain lengths.