R-ProgrammingAssignment-2 Renamed variables in matrix calculation function