This algorith is useless.

It takes time no shorter than insertion sort,
but it has a more complicated structure.

Just for practicing thinking and coding.