added openmp code to dwt3d_main.c main loop