ex 5 linearRegCostFunction