Continuous and reversible atomic rearrangement in a multifunctional titanium alloy