Move the matrix declarations to the .c file instead of the header