pub fn format_matrix(matrix: &[Vec<Expression>]) -> String