Matlab class to track iterations within a parfor loop