Text this: Research on performance optimizations for TCM-KNN network anomaly detection algorithm