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