added a non const ref matrix getter.