Add more efficient distinct operator.