added two versions of exercise 5
added more functional, but less efficient, groupArray.  There has to be a best of both worlds, I should find it.