I am learning the mechanics of Insertion Code. This is the original Insertion Code algorithm as described in several sites:
for