Cadence surges to 2-year high on patent ruling