Dijkstras algorithm naive implementation in go (no heaps)