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