Modifed to be inherited.  Refs #7476.

Modify CostFuncLeastSquare such that CostFuncRwp can inherit from it.
Changed inheritance.  Refs #7476.

Made CostFuncRwp inherit from CostFuncLeastSquares other than
CostFuncFitting.