definitions of makeCacheMatrix and cacheSolve

Submitted for R Programming (Fall 2014) Programming Assignment 2