Updating Adjacency List implementation