grid generation with maxima