Tried to make determinant efficient? Still ugly...