km.py use distense matrix to perform k-mean cluster A friendly implementation em_ml.py coin flipping probability with em_ml