04/21/14 ai wrote 2 fxns in cachematrix.R.