Rework the buffer & accessor implementation to be closer to the specification

This is required by slide 13 example.
Improve type of parallel_for