Returns the inverse of a matrix

These functions work together to invert a matrix, which is passed in as a
parameter, and caches the result to be used in subsequent function calls
Returns the mean of a vector

These functions work together to calculate the mean of a vector, which is
passed in as a parameter, and caches the result to be used in subsequent
function calls
minor chanes