linear and binary sorting (a homework) :< | ScratchStats