Fixed a bug in addEdge. When the edge exists you must update the cost for both edgeLists in node1 and node2.