Implement shorter choose parameters
Implement shorter choose parameters

This uses a magical constant to find k_limit; the value of the constant
was taken from the reference implementation.

gadomski/fgt,gadomski/fgt,gadomski/fgt