On linear-time deterministic algorythms for optimization problems in fixed dimension