Complete version of OpenCL code of first variant.
Extended result storage, now contains also result from GPU so it can be inspected.