Add in place qsort, reorganize files