Finalized initialization algorithm

Created algorithm for initializing the adjacency list in the graph
class.