Incomplete backup of mex implementation of Arnoldi