Systems of two subspaces in a Hilbert space