Added the matrix header

This will clean the code up quite a bit. Since we have a matrix file we
can easily include useful function in that data structure without
worrying about the hamming code functions.