A few major improvements:
- changed two if's into linear operations in "homogeneity maps from derivatives" loop
- changed / compacted FORC loop in cielab
- for non-OpenMP version: changed ndir variable to const int and buffer to static (proved unproductive in openmp...)