fixed horizon problem

There were times when a cycle could form due to cliques only knowing
their immediate neighbors.
Merge pull request #6 from Jogool/tree-construction

fixed horizon problem