CPU & GPU implementation of CLAHE algorithm