finished cpu-opencl version of dodf distance factory generation 3