Optimised the OpenCL init code with a load function in C++ instead of
Java. 
Created edge kernel. Needs to get simplified with a for loop.