added add_row_mult for adding a multiple of row vector to mad