with layered sampling almost implemented (still needs reservoir sampling from between). Also made changes to LayeredMethod and calcNeighbor... files to use arrays and the built in graph