Fixed both power functions in the BN library.

`sjcl.bn.power` will no longer freeze if it's not in a field.
`sjcl.bn.powermod` is slightly faster.