[rprog-week-4] Fixed copy/paste issue
[rprog-week-4] Implemented `rankall`