First implementation of Insertion Sort