Floyd's tortoise and hare algorithm
Tree