Work in progress BitEncoder.py

I might just import numpy… but I don’t want to import the library just
for an array / byte array, so still work in progress