A python implementation of the famous Djikstra's algorithm