Greedy Theory Using Improved Performance Prim’s Algorithm, Big Bang Speedup of the Bellman–Ford Algorithm