follow the cachevector example, used solve() instead of mean(), tested on a 2000x2000 matrix, seems to work
Merge https://github.com/johnzyin/ProgrammingAssignment2