Added new class AdjacencyList.