@Override public int getSize() { int countElements = 0; for (QuadTree child : children) { countElements += child.getSize(); } return countElements; }