Slightly more efficient Lsum
MMEM seems to work