Gaussian Problem With The Distance Matrix