Understanding Pseudocode Algorithms