Stability of the Couette flow at high Reynolds numbers in two dimensions and three dimensions