# Working Prim's alg, need tidying..