algorithm->schedule() in new thread

Signed-off-by: Alevtina Glonina <alevtina@lvk.cs.msu.su>
Multithreading seems to work now

Signed-off-by: Alevtina Glonina <alevtina@lvk.cs.msu.su>