Implementation of the hash table

Not sure if it works. If anyone sees any errors or illogical code please
let me know!