Create HW3 part4 determinant