Creating function that finds the maximum product of two gaussian densities.