Prim’s algorithm

See project at here