Some principles for mountain pass algorithms, and the parallel distance