implement a very simple hashtable in Java