First version of TaskScheduler

First version. 
TODO:
1. "demo" page 
2. double check all described  algorithm steps.