added threads but it's still slower. also removed dumb commented code and removed heatmap generation method.