Insertion Sort Refactoring