improved constness
fixed: adt added ctor and dtor; hashtable boundary check