organized sorting algorithm programs