completed percolation data type and fixed bugs. tests written in main() static method.