Add reducers parameter for distinct

distinct method should allow users to specify the reducers number