implemented and tested primitive version of ht_insert()