added binary to decimal conversion