Implementing prim's algorithm.
Adding another test.
Added the comments a bit
Merge pull request #3 from jeeyoungk/prims-algorithm

Implementing prim's algorithm.