adding reliable shortest path algo