Implemented new feature in applyMaxMin in TSCollection