@mengxr How about a simple temporary fix where we just have one ```calculate``` method in the ```Impurity``` trait that takes a list of Double as a single parameter?

I prefer to write a generic implementation as discussed soon but it might take me a few more days and will delay the PR.