Adding density functions to densfuns.cpp.