minimum length option added in beamsearch