Simple c language campus guide - shortest path