comments upd. queue is in right order
strongly connected components with small graph implemented