Fixed TreeGenerator (wrong range for rankStructure - has to be "catalan number(amountJoins)-1")