basic java for creating htable, cleaned up python