advantage and disadvantage of brute force algorithm