Generate all matrices
Added difficulty