Refactored SimpleSort class.