find all paths of a certain length