adds pseudocode longest step