Added not-perfect elemental algorithms