frechet distance attempt