Algorithms for sparsity-constrained optimization.