Problems 9 and 10

Realized now that problem 7 probably shouldn't have used linked lists,
but hey that's why I'm doing these - to learn