calculate the square distance between a, b
sqdist_R(a, b)
a
a matrix with D \times N dimension
D \times N
b
a numeric value for the different between a and b