結果 : write an algorithm to convert binary to decimal