Modification of the Thread's use: creation of a thread class.
Update of the await(s.count) == 0 statement, but not good enough.
TODO: stop the threads as soon as one find a cycle.