find all paths of a given length