System 2 thinking: Tensor Foundations to Frontier Reasoning Architectures. GDPO vs GRPO RL tuning