An extended projected residual algorithm for solving smooth convex optimization problems