update gridding.f90

Re-wrote most of the code to incorporate more freedoms. Users can now pick resolutions in the init.nml file, different kernels available through pre-processing, FindBox function to only count closest neighbors.