polynomial: add translateInPlace method.