Solved Problem 8

Solved problem 8 with satisfactory performance--no noticeable run time.