The realization of algorithm of Sorting by inserts for discipline of software testing