fix for loops (error compiling on mac)
change shift function
mex wrapper for 1d interpolation
update gitignore