commiting cachematrix.R solutions