Finished the first version of the argument sorting library.