findSubproblems function

List subproblems of a distance