Fixed all the errors with the creation of the LUT tree and the counting of the nets. The part of the tree creation is not evaluated for its correctness