Seventh commit

percolation_per_bound.cpp is tided up. percolation_func.cpp is forming
up and it is still not yet tested.