Returns the distance between two two-element vectors.