Elimination for diagonal direction.