Completed Assignment 2

Added functionality and comments to cachematrix.R