Find the shortest paths between arrays
findShortestChains(input)
input
An array list
The array list with all paths between arrays with distance > 1.