XDD Fix initialization and memory allocation for TOT

Restart frequency must initialize to 0.  And the allocation of the
TOT entries was missing the size.  This is the problem with using
the overflowing array technique.  You have to be carefuly when
allocating the memory.  The normal techniques do not easily work.