Text this: Application of Optimization Methods for Solving Clustering and Classification Problems