Native CLAHE implementation