assignment submission, implemented two function for cached matrix inversions