added has cycle
use floyd's algorithm
add unique trees
working compare_versions