Added Functions to cachematrix.R for programming assignment.