Convert binary numbers to decimal