codes for handling alist files and GF2 matrices
Reading GF2 matrix from alist file
Encoder helper functions