Rename mat.hpp to impl.hpp