Prim's algorithm

please capitalize class names.