Added missing statement in brute force algorithm