[mod] cleanup in dct function

This patch removes several unnecessary creations of Mat data structures. This
way it should save memory and possibly give a somewhat higher performance.
Additionally add some comments about possibly unnecessary headers in SPTrack.h