ve_step function

E-Step of the VEM algorithm