Somewhat working version of implementation. Fails at Num-nodes=300, cos of imperfect MaxMin calculation. Should remove Min calculation