Cache Inverse Matrix

Added logic and comments to cachematrix.R