The source file for the cachematrix.R updated

The functions in the source code have been updated and the changes are
ready for the commit