hash table implementation complete. bugs need squashing.