Redesigning LinkedList & HashMap