Completed problem 8 in Scala

This one involved the nested lists, and I wasn't able to find out how to
create generic lists.  In the future, I should find out how to make it,
so that I can generate sequences of any type.
Completed problem 9 in Scala