Issue #37: started estimating task runtime.

This is initial commit of WIP of this issue. The following commits will
introduce comments, and tests.
Issue #37: task runtime estimation is correct