added row/column updates to GMat