stacks of matrices 1889788