rewrote piecewise tree structure piece counter; fix < <= issues + optimize; fix PieceSplitter != Splitter