added pseudocode and initial solution