fixed bad random bug
moved random generation function and bnu_2power around.  added exponent testing routine which has exposed severe error in exponentiation.