reorg of main method; port partition_network to java; cache elevation data for network partitions