Moved all methods to prototype declaration.

Methods that were declared inside the constructor as this.methodName
have now been moved outside as BigInteger.prototype.methodName.