Add documentation on the curvilinear grid

Here we add the tex file that explains the implementation of the
curvilinear grid.