Added serial CPU support to reduce_by_key