Took care of the case where there are odd crossings at large sigmas when the gaussians get cut off