Functions for normal mixture distribution