FIX: add task list some time doesn't work well.

- add TaskList structure to task in safe way and faster

Signed-off-by: Giuseppe Monteleone <info@ing-monteleone.com>
ADD: added memory limit for safer task creation

Signed-off-by: Giuseppe Monteleone <info@ing-monteleone.com>