Gravothermal expansion in an N-body system