added destructor, addToHead, and addToTail for IntSLList