makeCacheMatrix and cacheSolve functions for programming assignment 2