sqr & euclideanDistance