including stdlib for random numbers generation
Implementation of the Percolation Stats constructor. Issue with Index boudn exception needs to be resovled