Computing the various Gini Indices

In computations we will translate all classes into numbers. Being these binary classes, they can easily be split into ones and zeros.