Prims algorithm with Fib Heap and Simple scheme