Please post Matrix.h. No one knows what variable type "data" is.

Regards,

Paul McKenzie