refactoring and made SortComparison class to take care of initialization per iteration of the Driver's main loop