added timing to problem_eight