BigNum bugfixes and new features (bitwise functions and pow)