move insertionSort to common.h