Add ks-test to hdp unit mcmc diagnostics for r