Extracted common operations for sorts. Implemented Insertion sort.