Finished learn() algorithms and fixed bugs

Dijkstra’s algorithm still needs to be fixed
Merge branch 'master' of https://github.com/beatlesfan007/cs2110A6