DONE: basic version of parallel DE (fixed memory leaks)