Completed Programming Assignment 2 requirements

Edited cachematrix.R and completed function logic in accordance with the
requirements of Programming Assignment 2