Introduced modulo-based partitioner implementation