Make statics thread local
Merge pull request #1321 from wmtan/UseThreadLocalStaticsInTrackingToolsTrajectoryFiltering

Multithreading fixes -- Make statics thread local in TrackingTools/TrajectoryFiltering