Updated with the function body for matrix creation and inversion

This is the first attempt at submitting the programming assignment2
submission