submitted funcs for cashing matrices
Merge branch 'master' of https://github.com/NightCapybara/ProgrammingAssignment2