include algpseudocode to produce nice algorithms
some updates on equations