C routines for dealing with normal distributions