removed row_changes (unnecessary)
fixed bug in print matrix fn