Quasi-Phasematched Acceleration Of Electrons In A Density Modulated Plasma Waveguide