Simplified LDL implementation and avoided modification of above-diagonal entries.