add matrix header file