use array as hash for short length key