I have been trying to form clusters of poly-lines by taking Frechet Distance as the measure. So, to compare two poly-lines, I run a loop on first poly-line and then another nest