computeCostMulti