Two-dimensional emd (BEMD) program