Wrote my own binary serialize methods.

Much more performant and space efficient. There seems to be an issue with
clobber checking though, all returned solutions are the minimal satisfying
sequence which is not ideal.