Further optimised the performance of WebCL operations and fixed memory usage problems.