Implemented purge() in ListAr

Found a bug in the ListAr destructor(). Sometimes it crahes.