optimization for sum metaop on a Range