Update tree sizes