Added pseudocode

Added the pseudocode for the functions