added code to cachematrix.R
Signed-off-by: jason john <dormantroot@gmail.com>