MinCostFlow Validated

Still want to incorporate capcities at a later date, but okay for now.