gsp: smt: Refactor success criteria.

Use euclidean distance and made some edits for readability.