Heat capacity of carbon nanotubes