[API] removed template from TraceFitter
[INTERNAL] moved TraceFitter code to cpp files