Changed functions_migration, implemented grid in R
Implemented the basic grid statistics in R - need to calculate them in C. Set up system of passing only the wanted stats. Need to change some variable names + modify functions_migration.c to accept grid parameters.