Fixed sliding window for gradient descent
Merge pull request #208 from arakitianskaia/slidingWindow

Correct gradient descent sliding window