add dijkstra-algorithm to ruby sample