Remove path checking and use a global map to store all the nodes visited and the current minimum path length to this node, the program is much faster but it is still too slow to pass the large data set.
Merge branch 'master' of https://github.com/niyue/coding