Improved bn_div.