Parallel or block-wise remainder calculation