add cmake compilation and create an implementation of 2.4:6 tasks

If needed some refactoring I wil make it when I will do thread implementation
Regards, Sasha