change format for size_t to %zu
gaussian pdf diagnal correction
ignore log(0) = -inf exception