Print matrix method added