Parallel versions for optimal trimming

Parallel versions for optimal trimming