added funcs for cashing matrix inverts
Merge branch 'master' of https://github.com/NightCapybara/ProgrammingAssignment2