Implement the SUM function for LUTE