Add IPP mean and sum functions
Some changes in sum and mean functions
Merge pull request #1187 from kdrobnyh:mean_and_sum