finished and tested cacheSolve function
minor changes