FileWrite::setMatFile: type of iterator should be size_t