Implemented functions for assignment 2

Implemented makeCacheMatrix and cacheSolve, as required for Programming
Assignment 2.