Fixed part of the delete bug. The only problem left is the hash table crashes when you try to delete values that do not exist.