Add PDM and PDD in the feature extraction
bug fix
use mex if option says so