Switched from vectors to stl arrays to index grid
Switched to storing data in a 1d vector
doing lua calls directly gives a slight speed improvement
removed unused lua::get_function function
Merge branch 'gridopt' into dev