Include Prim's algorithm in main.js