private long recalculateSize(Node n)
	{
		long size = n.getSize();
		
		//base case
		if (!n.isChildNode())
		{
			Node[] children = n.getChildren();
			for (Node child: children)
				size += recalculateSize(child);
			n.setSize(size);
		}
		
			return size;
	}