Shortest path project for Advanced Programming in C