Did some improvements to Problem005 and Problem010 to reduce the runtime