Uncovering mesa-optimization algorithms in Transformers