HashMap java Implementation addEntry Function