add tasks.map function

tasks.map(arr, task, callback)