combined threads with struct for both input and tracking to eliminate redundancy in mex2;
combined threads with struct for both input and tracking to eliminate redundancy in mex2;

abhineet123/MTF,abhineet123/MTF,abhineet123/MTF