Simple hash-table implementation