Initial commit of completed R script for ProgrammingAssignment2

Fully tested