computeCost for one variable (not passing)