Added function code

Added code for making a cached Matrix and solving it.