THE ACCELERATION OF COSMIC RAYS BY SHOCK WAVES