I changed all array of matrices to Matrix, because now clients are able too concatenate their matrices and pass as a single one to the algorithm