Added storing and loading for TsdGrid

Please check interpolation in axis parallel raycasting. I changed the linear interpolation to the y axis while traversing parallel to this axis. This should be right although I have not seen any difference yet.