add new tasks in front of the array