Added psuedocode

Added pseudocode