Created common residuals and uncertainties buffer in the CMinimizer class. Adapted minimizers to use these buffers instead. Modified Levmar minimizer to use CWorkerThread.