still SEGFAULT on images whose dimensions are multiple of 2 when running with openmp, but minimum computation is improved now