init gaussian with multi thread working(I think).needs extensive testing