Cost function's history, timer for each task.

Cost function's history and plotting implemented, timer for 10 minutes
for each task is set.