simplifications. this commit is ignoring failing tests. the sortedPoly-algorithm has to be fixed for generic cases