Adding confusion matrix and adjusted Rand index computation.