Added pseudo code from the first paper

Added pseudo code from the first paper