Added rows() and cols() member functions to all matrix classes.