Updated classes to use pointers instead of passing around grid objects.  Fixed a syntax error involving passing a function pointer to eigen's unaryExpr() function.