Removed unused TaskHist class.

All statistics are stored in Cats objects (which in turn reference
Hist objects). No direct link between tasks and hists is required.