HashTable: resolving collisions with chains; LinkedList: added key function for searching, fixed inserting before head.