Corrected typo in crossMat function