Efficient Sparse Coding Using Hierarchical Riemannian Pursuit