manage better errors for HashTable, Queue and Stack