Novel Shape Memory of Metal Nanowires through Reversible Lattice Reorientations