a forest in the matrix