Fixed some bug of Kunth Algorithm. Add large scale problem support

If the problem scale is too large. don't generate the whole possiblie
solution.
nothing