this converts binary to decimal