max_bonds argument added to find_bonds_brute