Implementation of HashMap using ArrayList