editing pseudocode snippet in readme