Dragon curve calculation in OpenCL, as an example of the map pattern.