refactoring for more OO approach.  Implementing Insertion sort.