where did general robert e. lee finally surrender to general ulysses s. grant

a.cold harbor
b.appomattox
c.manassas
d.gettysburg