Kernel docs: add section on data layout
Add example for flattened midpoint kernel