update matrix(or array) indexing mapping from Matlab to Fortran, to be continued...