Added matrix.h from mex interface