Matlab crossover and new head2tail