Direct Sum Criterion for Two Subspaces