speed-up smf_track_delete() from O(N^2) to O(n)