Sussex have signed all-rounder Chris Jordan on a two-year contract following his release from Surrey.