Created MST using Prim and simple array list.
Fixed bugs.