AdaptiveImportanceSamplingforFinite-Sum OptimizationandSamplingwithDecreasing Step-Sizes