Create catchmatrix.R

Solution to programming assignmment2