this a fix version of the LinksCODTree

it does not include not sub links and the recursion method has been
fixed.