Updated the K-SVD algorithm.

Main changes:
* Added a DictionaryLearningKSVD class.
* Merged the K-SVD and DictionaryLearning examples.
* learn_dictionary_ksvd now returns errors path.
* Added tests.