changed adjacency linked list backing structure from arraylist to hashmap for better space efficiency. will also stop preallocating size of nodes arraylist.