Converts binary number to decimal number