Removed targetCost from all models and moved it to BaseModel.
Added setTargetCost() and setNumberOfIterationsToCheckIfConverged() functions to BaseModel.