projection_nb: Projection operator for norm balls.
Description
Compute the projection operator for norm balls. For example,
we construct $$\lambda P_{B_{\| \cdot \|_*}[0,r]}(x/\lambda) = projection_nb(\lambda,r,\| \cdot \|_*,x)$$,
where \(\| \cdot \|_*\) can be \(l_{1}\)-norm, \(l_{2}\)-norm, and
\(l_{\infty}\)-norm.