+ Fix the bug that max_code_size goes overflow for too large n_classes
+ Make too small code_size invalid for all strategies.