Improvements in brute_force.rs and field.rs