problem 83! first try! Djikstra's algorithm ftw