cachematrix.R

my solution to programming assignment2