roll_matrix
matching brackets