Optimized Djikstra Algorithms