Added pseudocode

To be done