Prim's algorithm: comparing implementation of adjacency list using array and Fibonacci heap