Added timing to all the problems and solved problem 0005.