Factorizing symmetric indefinite matrices