assignment 2 program updates

My updates associated with programming assignment 2 of the “R
Programming” coursera class from Johns Hopkins. Base skeleton is
essentially a copy of the vector based example, with the necessary
changes to allow for matrix handling instead. Additionally, I have
added some commented out test code that verifies that things work as
expected,