assignment 2 tested with 2x2 matrices