Search for anything

find the shortest distance from A to B