Chemical reaction of a ketone or aldehyde with an α-haloester in the presence of a base to form an α,β-epoxy ester