Implementation of Dijkstra's algorithm for online course homework 'C++ for C programmers'