HashMap java Implementation Get Function