Upper Triangular Matrix Determinant