Backing up bracketing algorithm. Incomplete...