fixxed opencl mediaan. Upgraded the sorting algorithms