Code and notes for Algorithm Design