A simple algorithm for similarity evaluation of figures defined by sets of points