created RDD aware reservoir sampling with or without replacement
defined aggregation constants for combineByKey