Elimination of common sub expressions