Added bn_mul and fixes.