add test cases
enable to travell in cycle
change sort algorithm to support sort for cycle
update test case
add test cases for cyclic dependencies