Add sum of squares using stream fusion