First version of TaskScheduler

First version. Still to do "demo" page and double check all described  algorithm steps.