C++ wrapper for matio