Added OpenMP optimizations to the local_min_max filter