blockAverage: make each block approx equal size

This avoids that the last element has worse averaging (i.e. more noise if
using this to cut down on noisy data)
Merge branch 'master' of github.com:RoaldFre/octaveScripts