Call applyDynamicParallelization with number of instances.
Moved maxTaskSize to DynamicPriorityScheduler
Added/moved includes.