Shortest Path Algorithm Leetcode Solutions Cpp