Only consider subexpressions of the starting expression for CSE.
Merge pull request #3 from pjonsson/tweak-cse

Only consider subexpressions of the starting expression for CSE.