solved 107 using prims algorithm for MST
left a file by accident