Adjacency List implemened as well as Stack