First part of week 2 assignment
Added code for assignments 4 to 6
changed some stuff, started on bonus exercise
added some better testing ideas for the ispermutation function (not yet implemented)