Converts an input from binary to a decimal (Epicodus)