Working to automate tracking
Implementing tracking, pretty much done. Compiles, but crashes -> debugging
Tracking works. Turns out that histogram closenness isn't a good way to track (slow and inaccurate). There's a memory leak somewhere as well..