The Cosine Similarity Technique: A New Method for smart EXCIMER laser control.