Programming assignment 2 - Editting functions that cache the inverse of a matrix