Quad Tree implemented in Java