The Frechet algorithm is for 2D patterns. It can theoretically be extended to 3D, but only with severe limitations. It would not make sense for highs and lows.