cachematrix.R

My solution for cachematrix following the similar example as provided in the assignment.