Merged the design doc for stratified Cox including the residual computation part