fix mat3 header, implament path of mat3.c