Update dict_learning.py

Added parallelisation for online dictionnary learning algorithm.
Merge pull request #2533 from samuelstjean/patch-1

Update dict_learning.py