Eighth commit

percolation_func.cpp: The initialisation of the lattice has been written
in a function form. Next step is to the same with diffusion and MSD
calculation.