parallel version main_final.c