Implementing gauss peak