Tweaked Prim's Algorithm

Deleted Main.class binary file. Made some small changes to Main class.
Made some small modifications to Prim to correctly give the desired prev
values and to then added a method to calculate the MST cost given
primsMST result and the graph.