Updated makeCacheMatrix and cacheSolve functions.

Added code to makeCacheMatrix and cacheSolve functions per assignment.
Functions now take square matrix as parameter and return inverted
matrix. Computation only happens if cached copy of inverted matrix is
not available.