The sequential hypothesis on the function of sleep