submit assignment2 cachematrix functions