My version of functions

My version of the Matrix functions for the assignment