ex16: shared mem + array avg in common kernels
merge