Fix the indentation of Prim's algorithm