Implemented alternative gini function for ordered data sets