convers a binary number to decimal