updated kde2d

Avoids error with zero