Update dict_learning.py

Added parallelisation for online dictionnary learning algorithm.