adding isfunc
adding sub2indfast
improving sub2ind
adding matfiletools