add PrimMST and tests