algo thinking week3