Optimization of reEMReconstruct.m