Removed dead code
Unrolled shorter for() loops
Corrected DPLibEx usage