Completed draft of SMCTreeDensity.