https://wikimass.com/python/binary-to-decimal-converter