Analyzed Psuedocode