add mean-map kernel

Closes #5