multiplication alg.