cover check method added
simple simulation done
topological sorting done