Indexing options

Add parameters to indtosub and subtoind to select row-major (numpy "C style") and/or zero-based indexing, versus current default matlab/fortran-style column-major and one-based indexing. Also add .iml files (intellij project files) to .gitignore.
No underscore in argument