Commiting the initial version of cachematrix.R
Tested and works fine with different matrix inputs, short and long.