Converts a binary number from string into denary
assert("1001".binaryToDenary == 9);
See Implementation
Converts a binary number from string into denary