This function takes a candidate solution vector and a features list and builds rule.
build_rule(solution, features)
solution
The solution vector.
features
The features list.
A rule.