CPU & GPU implementation of CLAHE algorithm
fix compilation
added test for gpu version
minor updates for cpu implementation
refactoring