A New Bidirectional Research Chord Method Based on Bacterial Foraging Algorithm