Optimization of the deflated Conjugate Gradient algorithm for the solving of elliptic equations on massively parallel machines