Insertionsort - First implementation