Implementation of the Shell Sort algorithm, as given in CSC 232 on 14/03/2012 by Dr. Richard Martin.