Functions for cached inversion.
Merge branch 'master' of github.com:anpkr/ProgrammingAssignment2