Proximal primal–dual best approximation algorithm with memory