Added implementation for ht_init()

Solves #59