pseudocode added

pseudocode added