Adding challenges to matlab lessons

Small typo fixes plus challenges added to lesson 2 (loops) based on Python lesson 3. Partially addresses #686.