adding rankall.R file