- added check for subseries of the same length and returned one or more with the highest sum
- improved recursion of forEach function in getSubSeries