Conversion cpp latinSquare