invokes merge to produce the output file

merge(f1_ptr,f2_ptr,f3_ptr);