Optimized bn_mul.