completed assignment 2 and created a test function

Completed assignment 2 and created a test function test_cache_matrix.R
for simple benchmarking.