adding project euler solutions 49