Fixed clean-up method. Discovered a bug in the plotting function where it does not draw some connections. Updated the variance calculation in the quadtree