added pseudocode and first solution set