Added bin2int (version 1)
rewritten bin2int using foldr, added int2bin
Added make8
Added `encode` method
Added `decode` function