Added the bridge finder algorithm.