added pseudocode for algo