KL divergence and other distance measures in analyze.features, contributes to #25