Branch and Bound algorithm implemented upon the Brute Force algorithm