addition and multiplication for pdmat (tested)