Take the index of the min `ssd` as the "best match"
Additional test