Updated the reduce_nonzeroes_op struct to use a pointer rather than a reference.