Added implementation for ht_insert()

No testing yet, no related issue.
Will inevitably conflict with PR #162.