added functionality to cacheSolve function for managing cached value using special 'matrix' object