The Cooper problem in nanoscale: enhancement of the coupling due to confinement