Simple relation based hashtable