serialization of newmat Matrix