sq_dist replaced by scipy.spacial.distance.cdist
bug fix in infEP