Bubble sorting, selection sorting and insertion sorting are the three most basic sorting algorithms. They seem very different at first look, but essentially they share the same principle underneath. The process could be split into two steps: Partiti...