Minimum Cost to Connect Two Groups of Points