Insertion sort with tests. Refactored strategy selection using modules.