Pivoting and Constructing an Algorithm