Sparse coding libraries