A Novel Signal Similarity Evaluation Algorithm and its Application in Irregular Shape Recognition