his mind was slowly beginning to function again ; he had a vague memory of terrible effort , of swimming for his life in a frothing cauldron of heaving waves , and rain pelting his face so hard that it made little difference whether his head was above or below the surface .