Introduces p->mask_size which masks the task board for available task

In some cases, this may speed up the overall simulation -- if we know how many tasks must
be computed at each reset loop, the p->mask_size will shorten the loop.
Add more configuration flags to core