Wrote getAdjList