mean_vec_blocks function

Calculate the mean of adjacent blocks in a vector.