rankall.R submitted
programming assignment 4