Modified SolveandgenerateKML such that it used filtergraph so generate smaller copies

This should prevent the problem of having the data decay for the shortest path calculation.