Sussex have given all-rounder Ashar Zaidi - who was playing club cricket a year ago - a two-year contract.