[MOD] XQuery: Little Gauss (partial sum) calculation