First lexsort attempt! Need to fix formatting of output and then work on ```-nl```