homework 08 submission

You've left off the part that updates the edge cost if the edge already exists.