Update HW3 part4 determinant