integrated JFastEMD into our code