Grid2d updated
Grid improved
Added derivative functions to grid
Grid bugfixed
Excessive use of inline