Implemented HashMap using ArrayList