Euclidean Algorithm Matrixlab