Text this: Application of pso for solving problems of invariant comparison of two-dimensional closed curve