Correct code.

Add check for 'probability' in table.
Add constant of max count of fano-tree's levels.