distance function

Create a Gram matrix with squared Euclidean distances between observations in the input matrix X and the input matrix Y