added samples
found and fixed a bug, that cycle safeness was never checked in top down
depth first search.