A function to return the maximum percentage of the cumulative sum represented by a subset of the vector
Useful links