cachematrix functions

Completed cachematrix functions in cachematrix.R, in accordance with the
programming assignment.