Djikstras implementation wrote with a partner for an algorithms class.