Fixed bug in CompactLinearPartRecursive.
+test
+test
Fix in silmpliifyrecursive