Even before the guns fell silent at Gettysburg, Robert E. Lee was preparing for the arduous task of getting his defeated army back safely into Virginia. It was an enormous, …