ex1-5 computeCostMulti done (c/p of ex1-2)