Ported 6 solutions of project euler with improvements.