Generalize to varDim in CostFunction3D
Alternate way generalizing varDim
Introduce obMetaSize
New Driver and CostFunction for Thermoretrieval