WIP: K-Means Coder

Dictionary learning using K-Means.

This was here for a while, but I forgot to send the pull request.

Note: my three pull requests are incremental. The K-Means Coder branch includes the Dictionary Learning (sc) branch, which includes the sparse pca branch.

Best,
Vlad