Knownset : transform a list to tree if knownset.size > MAX_LIST + fixed some bugs